<template>
  <h2>App - {{ $store.state.counter }}</h2>
  <button @click="increase">+1</button>
  <button @click="decrease">-1</button>
  <modules></modules>
</template>

<script>
import modules from './pages/modules.vue'
export default {
  components: { modules },
  methods: {
    increase() {
      this.$store.commit('increase')
    },
    decrease() {
      this.$store.commit('decrease')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
